list=[1,10,4,2,9,2,34,5,9,8,5,0]
order=[]
for j in range(12,1,-1):
    biggest=list[0]
    for i in range(1,j):
        if biggest>=list[i]:
            pass
        else:
            biggest=list[i]
    list.remove(biggest)
    order.append(biggest)
order.append(list[0]) #把列表里最后剩的那个最小的元素追加到队尾
print(order)